package day03;

public class BreakTest{
	public static void main(String[]args){
		for(int i=0; i<10; i++){
			System.out.print(i+" ");
			if(i==5){
				break;
			}
		}
		System.out.println();
		int i = 0;
		while(i<10){
			System.out.print(i+" ");
			if(i==5){
				break;
			}
			i++;
		}
		System.out.println();
		for(int k=0; k<10; k++){
			for(int j=0; j<10; j++){
				System.out.print("k="+k+"j="+j+" ");
				if(k*j>=30){
					break;
				}
			}
			System.out.println();
		}
		System.out.println("==========================");
		outer:for(int k=0; k<10; k++){
			for(int j=0; j<10; j++){
				System.out.print("k="+k+"j="+j+" ");
				if(k*j>=30){
					break outer;
				}
			}
			System.out.println();
		}
		//....
	}
}